<%@ page import="java.time.LocalDate" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="ISO-8859-1">
    <title>Tennis player DB</title>
</head>
<body>

<h2>Welcome to the tennis player database!</h2>
<h3>
    Player name: <i>${name}</i>
</h3>
<%
    System.out.println("Hello from Jsp");
    LocalDate currentDate = LocalDate.now();
%>

<p><i> current Date:<%=
    currentDate %></i></p>
<p><i> Today is <%= currentDate.getDayOfWeek() %></i></p>

<form action="/player.do" method="POST">

    <b>Player name: <input type="text" name="name"/> </b>
    <input type="submit" value="Enter"/>

</form>

</body>
</html>